package org.msd.service;
import org.msd.dao.OrderDao;
import org.msd.model.Order;
import org.msd.service.iml.Orderservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class Orderimp implements Orderservice {
    @Autowired
    private OrderDao orderDao;

    @Override
    public int insertOrderDaO(int Ordersfogoods, String username, double Orderprice) {
        return orderDao.insertOrderDaO(Ordersfogoods, username, Orderprice);
    }

    @Override
    public List<Order> SERErOrder(String username) {
        return orderDao.SERErOrder(username);
    }

    @Override
    public List<Order> QuserOrder() {
        return orderDao.QuserOrder();
    }
}
